'use strict'
// Template version: 1.2.3
// see http://vuejs-templates.github.io/webpack for documentation.

const path = require('path')
const proxyConfig = require('./proxyConfig')
module.exports = {
    dev: {
        env: require('./dev.env'),
        host: 'localhost',
        port: 8188,
        autoOpenBrowser: true,
        assetsSubDirectory: 'static',
        assetsPublicPath: '/',
        proxyTable: proxyConfig.proxyList,
        // errorOverlay: true,
        // notifyOnErrors: true,
        // poll: false, // 
        // useEslint: true,
        // showEslintErrorsInOverlay: false,
        // devtool: 'eval-source-map',
        // cacheBusting: true,
        cssSourceMap: false,
    },

    build: {
        index: path.resolve(__dirname, '../dist/index.html'),
        assetsRoot: path.resolve(__dirname, '../dist'),
        assetsSubDirectory: 'static',
        assetsPublicPath: '/',
        productionSourceMap: true,
        devtool: '#source-map',
        productionGzip: false,
        productionGzipExtensions: ['js', 'css'],
        bundleAnalyzerReport: process.env.npm_config_report
    }
}